package cn.clouds234.poi.entity;

import cn.clouds234.poi.Excel;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 测试导入导出实体类。
 * @author wyf
 * @date 2025/3/19 14:17
 */
public class AccountDto {
    @Excel(name = "账号", columNum = 1)
    private String account;

    @Excel(name = "年龄", columNum = 2)
    private Integer age;

    @Excel(name = "钱（元）", columNum = 3)
    private Double money;

    @Excel(name = "添加日期", columNum = 4)
    private Date addDate;

    @Excel(name = "生日", dateFormat = "yyyy-MM-dd", columNum = 5)
    private LocalDate both;

    @Excel(name = "性别(m=男,w=女,x=未知)", columNum = 6, kind = "m,w,x")
    private String sex;

    public AccountDto() {
    }

    public AccountDto(String account, Integer age, Double money, Date addDate, LocalDate both, String sex) {
        this.account = account;
        this.age = age;
        this.money = money;
        this.addDate = addDate;
        this.both = both;
        this.sex = sex;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public LocalDate getBoth() {
        return both;
    }

    public void setBoth(LocalDate both) {
        this.both = both;
    }

    public Date getAddDate() {
        return addDate;
    }

    public void setAddDate(Date addDate) {
        this.addDate = addDate;
    }

    @Override
    public String toString() {
        return "AccountDto{" +
                "account='" + account + '\'' +
                ", age=" + age +
                ", money=" + money +
                ", addDate=" + addDate +
                ", both=" + both +
                ", sex='" + sex + '\'' +
                '}';
    }
}
